        AREA    ||.text||, CODE, READONLY, ALIGN=2
        ARM
	PRESERVE8

	IMPORT vSpiISR
	EXPORT vSpiISREntry

; Wrapper for the SPI port interrupt service routine.  This can cause a
; context switch so requires an assembly wrapper.

; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
	GET ISR_Support.inc

vSpiISREntry

	portSAVE_CONTEXT			; Save the context of the current task.

	bl	vSpiISR				    ; Call the ISR routine.

	portRESTORE_CONTEXT			; Restore the context of the current task -
								; which may be different to the task that
								; was interrupted.

	END

